package tech.xiaozai.exam.service;


import tech.xiaozai.common.CommonPage;
import tech.xiaozai.exam.bo.UserBO;
import tech.xiaozai.exam.po.SysUser;

import java.util.List;

/**
 * @author xiaozai
 * @version 1.0
 * @date 2020-09-14 10:32
 */
public interface UserService {
    SysUser getById(Long id);
    void update(SysUser user);
    void insert(SysUser user);
    void delete(Long id);

    CommonPage<UserBO> page(Integer pageNum, Integer pageSize, SysUser model);

    void updateRolesOfUser(Long userId, List<Long> roleIds);
}
